/**
* @fileOverview 一厂一策规则接口
* @author wind-lc
* @version 1.0
*/

import { post } from '@/request/http'

// 获取企业列表
const getHnEntinfoAndWorkshop = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnEntinfo/getHnEntinfoAndWorkshop', params)
}
// 获取设备
const queryAllRuleEquipment = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnRule/queryAllRuleEquipment', params)
}
// 获取选中设备
const queryChooseEquipmentId = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnRule/queryChooseEquipmentId', params)
}
// 设置设备规则
const saveRule = params => {
  return post(process.env.VUE_APP_CDHNTECH_API + '/hnRule/saveRule', params)
}

export { getHnEntinfoAndWorkshop, queryAllRuleEquipment, queryChooseEquipmentId, saveRule }
